﻿using System;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class GetEventsCommnad : WindowsLiveCommand
    {
        /// <summary>
        /// 
        /// </summary>
        public override string GraphApiPath
        {
            get
            {
                if (!HttpClient.IsNullOrWhiteSpace(UserID))
                    return this.UserID + "/events";
                else if (!HttpClient.IsNullOrWhiteSpace(CalendarID))
                    return this.CalendarID + "/events";
                else
                    return "me/events";
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public String UserID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String CalendarID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public GetEventsCommnad()
        {
        }
    }
}
